package com.example.springboot_zc.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot_zc.mapper.tydataMapper;
import com.example.springboot_zc.pojo.TyData;
import com.example.springboot_zc.service.tydataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class tydataServiceImpl extends ServiceImpl<tydataMapper, TyData> implements tydataService {
    @Autowired
    tydataMapper tydataMapper;

    public Integer deleteByStu(String stuNum){return tydataMapper.deleteByStu(stuNum);}
    public List<TyData> selectByStu(String stuNum){return tydataMapper.selectByStu(stuNum);}

}
